/**
 * 
 * 
 * 你可以打开F12控制台，使用window.connector进行测试
 * 
 * 
 */

window.connector.callCommand(function () {
    var presentation = Api.GetPresentation();
    var shape = presentation.GetAllShapes()[0];
    if(shape.GetClassType() == 'table'){
        var content = currentSelectObj.GetCurCell().GetContent();
        var eleCount = content.GetElementsCount();
        for(var j=0;j<eleCount;j++){
            var paragraph = content.GetElement(j);
            console.log(paragraph.GetId2());
        }
    }
    
}, function () {});